﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Compiler_package
{
    public partial class ParseTreeForm : Form
    {
        public ParseTreeForm()
        {
            InitializeComponent();
        }
        public void SetInfo(TreeNode node,string Code)
        {
            this.TreeVParseTree.Nodes.Clear();
            this.TreeVParseTree.Nodes.Add(node);
            this.TreeVParseTree.ExpandAll();
            this.RTxtbCode.Text = Code;
        }
    }
}
